//
//  GroupButton.h
//  HTP
//
//  Created by admin on 15/11/1.
//  Copyright © 2015年 nit. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol GroupButtonDegeta ;
@interface GroupButton : UIView{
    NSString *_groupId;
    BOOL      _isSelect;
    id<GroupButtonDegeta> _delegate;
}
@property (nonatomic,assign) id<GroupButtonDegeta> delegate;
@property (nonatomic,copy,readonly) NSString      *groupId;
@property (nonatomic,assign)        BOOL          isSelect;
-(id)initWithDelegate:(id)delegate groupId:(NSString *)groupId buttonImage:(NSString *)image unSelectImage:(NSString *)unSelectImage title:(NSString *)title withFrame:(CGRect) frame;

@end
@protocol GroupButtonDegeta <NSObject>

-(void)didSelectGroup:(GroupButton *)groupBtn groupId:(NSString *)groupId;

@end
